package com.example.spsaveqqty.userManage;

import android.graphics.Bitmap;

import java.io.Serializable;
import java.sql.Blob;

public class User implements Serializable {
    public static String USERNAME;
    public static int USERID;
    public static String USERPICTURE;

    public static  String FLAG;
    private String username;
    private String password;
    private String picture;
    private Bitmap pic;
    private String location;
    private String birthday;
    private int sex;//性别
    private String slogan;
    private String flag;//1 代表相册  2代表拍照

    public User(String username, String password, String picture, String location, String birthday, int sex, String slogan, String flag) {
        this.username = username;
        this.password = password;
        this.picture = picture;
        this.location = location;
        this.birthday = birthday;
        this.sex = sex;
        this.slogan = slogan;
        this.flag = flag;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public User() {
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }
    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", picture='" + picture + '\'' +
                ", location='" + location + '\'' +
                ", birthday='" + birthday + '\'' +
                ", sex=" + sex +
                ", slogan='" + slogan + '\'' +
                ", flag='" + flag + '\'' +
                '}';
    }
}
